package org.zhadoop.stream.cql.semanticanalyzer.parser.visitor;

import org.zhadoop.stream.cql.semanticanalyzer.parser.CQLParser.InsertStatementContext;
import org.zhadoop.stream.cql.semanticanalyzer.parser.CQLParser.SelectStatementContext;
import org.zhadoop.stream.cql.semanticanalyzer.parser.context.ParseContext;

/**
 * 可执行命令语法遍历
 * @author zwd
 *
 */
public class ExecStatementVisitor extends AbsCQLParserBaseVisitor<ParseContext>{

	public ExecStatementVisitor() {	}
	
	@Override
	protected ParseContext defaultResult() {
		return null;
	}
	
	@Override
	public ParseContext visitInsertStatement(InsertStatementContext ctx) {
		InsertStatementVisitor visitor = new InsertStatementVisitor();
        return visitor.visit(ctx);
	}
	
	@Override
	public ParseContext visitSelectStatement(SelectStatementContext ctx) {
		SelectStatementVisitor visitor = new SelectStatementVisitor();
		return visitor.visit(ctx);
	}

}
